import {configureStore,combineReducers} from "@reduxjs/toolkit";
import { userSlice } from "./methods/userSlice";
import { listSlice } from "./methods/listsSlice";
const allReducers = combineReducers({
    userReducer:userSlice.reducer,
    listReducer:listSlice.reducer
})
export const store = configureStore({reducer:allReducers})

export type RootSate = ReturnType<typeof store.getState>
export type AppDispatch = typeof store.dispatch